package service;

import pojo.User;

import java.util.List;

public interface UserService {

    int addUser(User user);

    int updateUser(User user);

    User findUserById(Integer id);

    int deleteUser(Integer id);

    int count(User condition);

    List<User> findAll(User condition, int offset, int pageSize);
}